package day240426.work;

public class Girl {
    String name;
    int age;
    //心动指数
    private double love;
    public Girl(String name, int age) {
        this.name = name;
        this.age = age;}
        public String getlove(Boy boy) {
            // 女生根据男生的各种条件进判断...给出一个值
            love = 90.0;

            double result = love - 0.8;
            return "还行吧（" + result + "）" ;
        }
//Getter and Setter
//    // 也可以通过 IDEA 自动生成，快捷键或者...
//    // 右击 -> Generate... -> 选中某个 state -> ok
    public double getLove() {
        return love;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setLove(double love) {
        this.love = love;
    }
}

